import { reactive, ref } from 'vue'
import { TASK_TYPE, TASK_STATUS, TASK_INSPECTS, LIVE_STREAM } from '@/utils/dictionary'

export const form = reactive({
  userForm: {
    fileImage: '',
    handlerResult: '',
    imageStatus: '',
    tempImg: ''
  },
  userRules: {
    channelId: [{ required: true, type: 'number', message: '请选择问题类型', trigger: 'blur' }],
    imageStatus: [{ required: true, message: '请上传图片', trigger: 'blur' }],
    handlerResult: [{ required: true, message: '请输入', trigger: ['blur', 'change', 'input'] }]
  },
  formItem: [
    { type: 'oss', key: 'fileImage', file: 'fileImage', onlyRead: true, label: '问题照片' },
    { type: 'oss', refIndex: 0, key: 'imageStatus', file: 'handlerImage', label: '处理图片' },
    { type: 'input', key: 'handlerResult', label: '处理结果', props: { maxlength: '30', placeholder: '请输入处理结果' }}
  ]
})
